import request from '@/utils/request'


// 网站配置
export function getconfig(params: any) {
    return request.get({ url: '/plugins.adminapi_cms.admin.controller.webConfig/getconfig', params })
}

// 网站配置
export function setConfig(params: any) {
    return request.post({ url: '/plugins.adminapi_cms.admin.controller.webConfig/setConfig', params })
}

// 网站模版
export function plate(params: any) {
    return request.get({ url: '/plugins.adminapi_cms.admin.controller.webConfig/plate', params })
}


// 新增自定义
export function setCustum(params: any) {
    return request.post({ url: '/plugins.adminapi_cms.admin.controller.webConfig/setCustum', params })
}


// 自定义栏目配置
export function setCustumConfig(params: any) {
    return request.post({ url: '/plugins.adminapi_cms.admin.controller.webConfig/setCustumConfig', params })
}

// 自定义栏目配置信息
export function getCustum(params: any) {
    return request.post({ url: '/plugins.adminapi_cms.admin.controller.webConfig/getCustum', params })
}

// 删除自定义配置
export function delCustum(params: any) {
    return request.post({ url: '/plugins.adminapi_cms.admin.controller.webConfig/delCustum', params })
}
// 点击备份
export function createBackup(params: any) {
    return request.get({ url: '/plugins.adminapi_cms.admin.controller.Buckup/createBackup', params })
}
// 备份列表
export function listBackups(params: any) {
    return request.get({ url: '/plugins.adminapi_cms.admin.controller.Buckup/listBackups', params })
}
// 恢复备份
export function restoreBackup(params: any) {
    return request.post({ url: '/plugins.adminapi_cms.admin.controller.Buckup/restoreBackup', params })
}

// 删除备份
export function deleteBackup(params: any) {
    return request.post({ url: '/plugins.adminapi_cms.admin.controller.Buckup/deleteBackup', params })
}

